package com.jy.bean;



import java.util.List;

// FIXME generate failure  field _$CustomPart191
/**
 * @Describe: 配件请求响应
 * @Package: com.jy.mobiledb.bean
 * @Author: sunshu
 * @Date: 2018/11/14/ 14:18
 * @Copyright: jingyou
 */


public class ResponsePart {

    //  根据图形点选部位查配件
    public List<Part> vehicleAllDetailPart; // 车辆所有零件

    // 查找部位
    public List<Position> positionList; // 部位列表

    // 根据碰撞部位查找零件列表
    public List<Part> collsionvehicleDetailPartList; // 碰撞部位零件列表

    // 查找整车结构子分类
    public List<CarStruct> carStructDicList; // 整车结构子分类

    public List<Part> vehicleDetailPartByGroupIdList; // 根据groupId获取详细配件

    // 换件本地查询
    public List<Part> vehicleDetailByPartNamePartList; // 根据PartName 获取配件List

    // 自定义换件同名校验
    public CustomPart customPart;

//    public MobileDBException e;

    private void clear(){
        vehicleAllDetailPart = null;
        positionList = null;
        collsionvehicleDetailPartList = null;
        carStructDicList = null;
        vehicleDetailPartByGroupIdList = null;
        vehicleDetailByPartNamePartList = null;
        customPart = null;
//        e = null;
    }



    public static class Position{
        private String collsionId; // 碰撞部位编号
        private String positonName; // 碰撞部位名称
        private String positonCode; // 碰撞位置code

        public String getCollsionId() {
            return collsionId;
        }

        public void setCollsionId(String collsionId) {
            this.collsionId = collsionId;
        }

        public String getPositonName() {
            return positonName;
        }

        public void setPositonName(String positonName) {
            this.positonName = positonName;
        }

        public String getPositonCode() {
            return positonCode;
        }

        public void setPositonCode(String positonCode) {
            this.positonCode = positonCode;
        }
    }

    public static class  Part{

        private String detailPartId; // 编号
        private String orginalPartCode; // 原厂零件号
        private String partId; // 配件id
        private String partName; // 零件名称
        private String rankId; // 车系编号
        private String partNumber; // 零件数量(用量)
        private String bz; // 备注

        public String getDetailPartId() {
            return detailPartId;
        }

        public void setDetailPartId(String detailPartId) {
            this.detailPartId = detailPartId;
        }

        public String getOrginalPartCode() {
            return orginalPartCode;
        }

        public void setOrginalPartCode(String orginalPartCode) {
            this.orginalPartCode = orginalPartCode;
        }

        public String getPartId() {
            return partId;
        }

        public void setPartId(String partId) {
            this.partId = partId;
        }

        public String getPartName() {
            return partName;
        }

        public void setPartName(String partName) {
            this.partName = partName;
        }

        public String getRankId() {
            return rankId;
        }

        public void setRankId(String rankId) {
            this.rankId = rankId;
        }

        public String getPartNumber() {
            return partNumber;
        }

        public void setPartNumber(String partNumber) {
            this.partNumber = partNumber;
        }

        public String getBz() {
            return bz;
        }

        public void setBz(String bz) {
            this.bz = bz;
        }
    }

    public static class CarStruct{

        private String  flag;
        private String  groupName;  // 组别编码
        private String  parentRelation;  // 父子关系
        private String  structUreId;  // 编号
        private String  structUreName; // 部件名称

        public String getFlag() {
            return flag;
        }

        public void setFlag(String flag) {
            this.flag = flag;
        }

        public String getGroupName() {
            return groupName;
        }

        public void setGroupName(String groupName) {
            this.groupName = groupName;
        }

        public String getParentRelation() {
            return parentRelation;
        }

        public void setParentRelation(String parentRelation) {
            this.parentRelation = parentRelation;
        }

        public String getStructUreId() {
            return structUreId;
        }

        public void setStructUreId(String structUreId) {
            this.structUreId = structUreId;
        }

        public String getStructUreName() {
            return structUreName;
        }

        public void setStructUreName(String structUreName) {
            this.structUreName = structUreName;
        }
    }

    public static class CustomPart {
        /**
         * exist : 1
         */

        private String exist;

        public String getExist() {
            return exist;
        }

        public void setExist(String exist) {
            this.exist = exist;
        }
    }


    public List<Part> getVehicleAllDetailPart() {
        return vehicleAllDetailPart;
    }

    public void setVehicleAllDetailPart(List<Part> vehicleAllDetailPart) {
        clear();
        this.vehicleAllDetailPart = vehicleAllDetailPart;
    }

    public List<Position> getPositionList() {
        return positionList;
    }

    public void setPositionList(List<Position> positionList) {
        clear();
        this.positionList = positionList;
    }

    public List<Part> getCollsionvehicleDetailPartList() {
        return collsionvehicleDetailPartList;
    }

    public void setCollsionvehicleDetailPartList(List<Part> collsionvehicleDetailPartList) {
        clear();
        this.collsionvehicleDetailPartList = collsionvehicleDetailPartList;
    }

    public List<CarStruct> getCarStructDicList() {
        return carStructDicList;
    }

    public void setCarStructDicList(List<CarStruct> carStructDicList) {
        clear();
        this.carStructDicList = carStructDicList;
    }

    public List<Part> getVehicleDetailPartByGroupIdList() {
        return vehicleDetailPartByGroupIdList;
    }

    public void setVehicleDetailPartByGroupIdList(List<Part> vehicleDetailPartByGroupIdList) {
        clear();
        this.vehicleDetailPartByGroupIdList = vehicleDetailPartByGroupIdList;
    }

    public List<Part> getVehicleDetailByPartNamePartList() {
        return vehicleDetailByPartNamePartList;
    }

    public void setVehicleDetailByPartNamePartList(List<Part> vehicleDetailByPartNamePartList) {
        clear();
        this.vehicleDetailByPartNamePartList = vehicleDetailByPartNamePartList;
    }

    public CustomPart getCustomPart() {
        return customPart;
    }

    public void setCustomPart(CustomPart customPart) {
        clear();
        this.customPart = customPart;
    }
}
